﻿using System;
using System.Net;
using System.ComponentModel;

namespace FbHelperWP7NonUi.BookStorage.DropBoxStorage.AsyncHelpClasses
{
    internal sealed class LoginData : AbstractAsyncData
    {
        private readonly string eMail;
        private readonly string password;
        private readonly AsyncRequestCompleted<LoginResult> callback;

        public LoginData( BackgroundWorker worker, string eMail, string password, AsyncRequestCompleted<LoginResult> callback )
            : base( worker )
        {
            this.eMail = eMail;
            this.password = password;
            this.callback = callback;
        }

        public string EMail
        {
            get
            {
                return eMail;
            }
        }

        public string Password
        {
            get
            {
                return password;
            }
        }

        public AsyncRequestCompleted<LoginResult> Callback
        {
            get
            {
                return callback;
            }
        }
    }

}
